import request from '@/utils/request'

// 查询会员价格列表
export function listVipPrice(query) {
  return request({
    url: '/vipPrice/vipPrice/list',
    method: 'get',
    params: query
  })
}

// 查询会员价格详细
export function getVipPrice(priceId) {
  return request({
    url: '/vipPrice/vipPrice/' + priceId,
    method: 'get'
  })
}

// 新增会员价格
export function addVipPrice(data) {
  return request({
    url: '/vipPrice/vipPrice',
    method: 'post',
    data: data
  })
}

// 修改会员价格
export function updateVipPrice(data) {
  return request({
    url: '/vipPrice/vipPrice',
    method: 'put',
    data: data
  })
}

// 删除会员价格
export function delVipPrice(priceId) {
  return request({
    url: '/vipPrice/vipPrice/' + priceId,
    method: 'delete'
  })
}
